{% comment %}
#    This file is part of OpenPolitik.
#
#    OpenPolitik is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    OpenPolitik is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with OpenPolitik.  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% extends "layout.html" %}

{% block content %}
<h2>Orders</h2>
{% if output %}
	<div style = "border: 1px solid black; width: 500px; padding: 5px">{{ output }}</div>
{% endif %}
<form action = "" method = "post">
	<input type = "hidden" name = "game" value = "{{ game.name|urlencode }}" />

	{{ orders }}
	<br />
	Pieces (<a href = "#" onclick = "$('guide').toggle(); return false">help</a>):<br />
	<div id = "guide" style = "display: none; width: 430px; padding: 4px; text-align: justify; font-size: 12px">
		Format is like this: owner type location<br />
		The owner is who owns the unit there. Use the first letter of the nation's name (ie. T for Turkey).
		If the unit is not owned by anyone, use N for neutral. This is mainly for neutral supply centres.<br />
		The type is one of three: A (army), F (fleet), or SC (supply centre).<br />
		The location is the place on the map where the unit will be put. Use the three letter abbreviation
		for the place and put the coast if necessary.<br />
		For example, this would be a Russian fleet on Bulgaria's east coast:<br />
		R F BUL EC<br />
	</div>
	<textarea name = "pieces" rows = "20" cols = "60">{{ pieces }}</textarea><br />
	<input type = "submit" value = "Generate" />
</form>
<a href = "/game/{{ game.name|urlencode }}">Back to {{ game.name }}</a>
{% endblock %}
